package com.edooteach.api.servcice;

import java.util.List;
import com.edoomath.entity.user.UserAddress;
import com.edooteach.api.dto.UserAddressEdit;

/**
 * 
 * @author sjh
 *
 */
public interface UserAddressApiService extends DataService<UserAddress>{

	/**
	 * 
	 * @param unionid
	 * @return
	 */
	public List<UserAddress> list(String unionid);
	
	/**
	 * 
	 * @param id
	 */
	public void delete(Long id);
	
	/**
	 * 
	 * @param userAddressEdit
	 */
	public void edit(Long addressId, UserAddressEdit userAddressEdit);
	
	/**
	 * 
	 * @param userAddressEdit
	 */
	public void create(String unionid, UserAddressEdit userAddressEdit);
	
	/**
	 * 
	 * @return
	 */
    public UserAddress loadDefault(String unionid);
    
    /**
     * 
     * @param addressId
     * @param unionid
     * @return
     */
    public UserAddress setDefault(Long addressId, String unionid);
}
